package net.zjitc.controller;

import net.zjitc.pojo.User;
import net.zjitc.service.UserService;
import net.zjitc.service.impl.UserServiceImpl;
import net.zjitc.utils.dispacher.URLMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * Created by Administrator on 2017/11/9.
 */
public class UserController {
    @URLMapping(url = "/findAllUser")
    public String findAll(HttpServletRequest request, HttpServletResponse response){
        UserService userService = new UserServiceImpl();
        List<User> list = userService.findAll();
        request.setAttribute("list",list);
        return "/admin/user/list.jsp";
    }
}
